package com.ncsc.erp.model;
// Generated 20 มิ.ย. 2557, 12:55:43 by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * ScVoteTransComment generated by hbm2java
 */
@Entity
@Table(name="sc_vote_trans_comment"
    ,catalog="ncsc_erp"
)
public class ScVoteTransComment  implements java.io.Serializable {


     private long voteCommentNo;
     private SdCustUserAccount sdCustUserAccount;
     private ScVoteTrans scVoteTrans;
     private String voteCommentText;
     private Date voteCommentCreatedDtm;
     private Set<ScVoteTransCommentImage> scVoteTransCommentImages = new HashSet<ScVoteTransCommentImage>(0);

    public ScVoteTransComment() {
    }

	
    public ScVoteTransComment(long voteCommentNo) {
        this.voteCommentNo = voteCommentNo;
    }
    public ScVoteTransComment(long voteCommentNo, SdCustUserAccount sdCustUserAccount, ScVoteTrans scVoteTrans, String voteCommentText, Date voteCommentCreatedDtm, Set<ScVoteTransCommentImage> scVoteTransCommentImages) {
       this.voteCommentNo = voteCommentNo;
       this.sdCustUserAccount = sdCustUserAccount;
       this.scVoteTrans = scVoteTrans;
       this.voteCommentText = voteCommentText;
       this.voteCommentCreatedDtm = voteCommentCreatedDtm;
       this.scVoteTransCommentImages = scVoteTransCommentImages;
    }
   
     @Id 

    
    @Column(name="VOTE_COMMENT_NO", unique=true, nullable=false)
    public long getVoteCommentNo() {
        return this.voteCommentNo;
    }
    
    public void setVoteCommentNo(long voteCommentNo) {
        this.voteCommentNo = voteCommentNo;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="VOTE_COMMENT_BY_CUST_USER_NO")
    public SdCustUserAccount getSdCustUserAccount() {
        return this.sdCustUserAccount;
    }
    
    public void setSdCustUserAccount(SdCustUserAccount sdCustUserAccount) {
        this.sdCustUserAccount = sdCustUserAccount;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="VOTE_NO")
    public ScVoteTrans getScVoteTrans() {
        return this.scVoteTrans;
    }
    
    public void setScVoteTrans(ScVoteTrans scVoteTrans) {
        this.scVoteTrans = scVoteTrans;
    }

    
    @Column(name="VOTE_COMMENT_TEXT", length=1000)
    public String getVoteCommentText() {
        return this.voteCommentText;
    }
    
    public void setVoteCommentText(String voteCommentText) {
        this.voteCommentText = voteCommentText;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="VOTE_COMMENT_CREATED_DTM", length=19)
    public Date getVoteCommentCreatedDtm() {
        return this.voteCommentCreatedDtm;
    }
    
    public void setVoteCommentCreatedDtm(Date voteCommentCreatedDtm) {
        this.voteCommentCreatedDtm = voteCommentCreatedDtm;
    }

@OneToMany(fetch=FetchType.LAZY, mappedBy="scVoteTransComment")
    public Set<ScVoteTransCommentImage> getScVoteTransCommentImages() {
        return this.scVoteTransCommentImages;
    }
    
    public void setScVoteTransCommentImages(Set<ScVoteTransCommentImage> scVoteTransCommentImages) {
        this.scVoteTransCommentImages = scVoteTransCommentImages;
    }




}


